<template>
	<view>
		<view class="content">
			<view class="title">页面信息及服务由北京诚优佳装饰有限责任公司提供</view>
			<view class="black">
				<view class="min-title">北京诚优佳装饰</view>
				<view class="max-title">让家装一站式解决</view>
				<view class="img-box">
					<view class="">
						<image src="../../static/5.png" mode=""></image>
						<text>客厅</text>
					</view>
					<view class="">
						<image src="../../static/1.png" mode=""></image>
						<text>厨房</text>
					</view>
					<view class="">
						<image src="../../static/2.png" mode=""></image>
						<text>书房</text>
					</view>
					<view class="">
						<image src="../../static/3.png" mode=""></image>
						<text>卧室</text>
					</view>
					<view class="">
						<image src="../../static/4.png" mode=""></image>
						<text>儿童房</text>
					</view>
				</view>
				<view class="text-box">
					<text>装修案例</text>
					<text>设计文案</text>
					<text>装修报价</text>
				</view>
			</view>
			<view class="fengge">
				定制理想家居，风格随您定义
				<view class="bottom-bg"></view>
			</view>
			<view class="dianji">
				<text>点击下方</text>
				<image src="../../static/6.png" mode="" v-for="i in 3"></image>
				<text>锁定需求</text>
			</view>
			<view class="btn green" @click="toUrl(1)">免费获取报价</view>
			<view class="btn blue" @click="toUrl(2)">领取户型设计</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
		toUrl(index) {
			let urls = '/pages/index/baojia'
			if(index == 2) {
				urls ='/pages/index/step3'
			}
			uni.navigateTo({
				url:urls
			})
		}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #8D8D8D;
		font-family: PingFang SC, PingFang SC;
	}

	.content {
		padding-top: 50rpx;
		background-color: #FFF;
		border-radius: 30rpx 30rpx 0 0;
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 75vh;
	}

	.title {
		font-weight: 400;
		font-size: 24rpx;
		color: #333333;
		text-align: center;
		font-style: normal;
		text-transform: none;
		margin-bottom: 40rpx;
	}

	.black {
		background-image: url('../../static/bg2.png');
		background-size: cover;
		width: 700rpx;
		height: 362rpx;
		margin: 0 auto;
		border-radius: 20rpx;
		overflow: hidden;
		margin-bottom: 50rpx;

		.min-title,
		.max-title {
			color: #FEFF04;
			text-align: center;
		}

		.min-title {
			font-size: 36rpx;
			margin-top: 30rpx;
		}

		.max-title {
			font-size: 36rpx;
			font-weight: 600;
			margin-bottom: 20rpx;
		}

		.img-box {
			display: flex;
			align-items: center;
			justify-content: space-between;
			color: #FFF;
			width: 500rpx;
			margin: 0 auto;
			margin-bottom: 30rpx;

			image {
				width: 60rpx;
				height: 60rpx;
				margin-bottom: 10rpx;
			}

			view {
				display: flex;
				align-items: center;
				justify-content: center;
				flex-flow: column nowrap;
				font-weight: 400;
				font-size: 24rpx;
				text-align: center;
				font-style: normal;
				text-transform: none;
			}
		}

		.text-box {
			color: #FFF;
			display: flex;
			align-items: center;
			justify-content: center;
			font-size: 28rpx;

			text {
				border-right: 1px solid #FFF;
				height: 30rpx;
				line-height: 28rpx;

				&:last-child {
					border-right: none;
					margin-left: 40rpx;
				}

				&:nth-child(2) {
					padding: 0 40rpx;
				}

				&:first-child {
					padding-right: 40rpx;
				}

			}
		}
	}

	.fengge {
		width: 590rpx;
		margin: 0 auto;
		font-weight: 500;
		font-size: 46rpx;
		color: #000000;
		text-align: center;
		font-style: normal;
		text-transform: none;
		position: relative;
		margin-bottom: 50rpx;

		.bottom-bg {
			position: absolute;
			bottom: 4rpx;
			width: 100%;
			height: 16rpx;
			background: #FEFF04;
			border-radius: 0rpx 0rpx 0rpx 0rpx;
			opacity: 0.2;
		}
	}

	.dianji {
		display: flex;
		align-items: flex-end;
		justify-content: center;
		font-size: 36rpx;
		color: #FF0004;
		text-align: center;
		font-style: normal;
		text-transform: none;

		image {
			width: 44rpx;
			height: 49rpx;
			margin-left: 10rpx;
			animation: bounce 1.5s infinite;
		}

		text:last-child {
			margin-left: 10rpx;
		}
	}

	@keyframes bounce {
		0%,
		100% {
			transform: rotate(0deg) translateY(0);
		}

		50% {
			transform: rotate(0deg) translateY(-20rpx);
		}
	}


	.btn {
		width: 520rpx;
		height: 90rpx;
		border-radius: 10rpx 10rpx 10rpx 10rpx;
		line-height: 90rpx;
		font-weight: 500;
		font-size: 35rpx;
		color: #FFFFFF;
		text-align: center;
		font-style: normal;
		text-transform: none;
		margin: 40rpx auto;
	}

	.blue {
		background: #1990FF;
	}

	.green {
		background: #04C774;
	}
</style>